/**
 * 
 */
$(document).ready(function() {
			var dataUrl = "demo/";
			$("#user_login_button").click(function(){
				var user_name=$("#user_name").val();
				var user_password=$("#user_passwoed").val();
				$.ajax({
						type : "POST",
						cache: false,
						dataType: "json",
						url : dataUrl+"login",
						data : "userName="+user_name+"&userPwd="+user_password,
						success : function(msg) {
							$("#user_id").html(msg.message);
						}
					});
			});
			
			$("#user_regist_button").click(function(){
				var user_name=$("#user_name_regist").val();
				var user_password=$("#user_passwoed_regist").val();
				$.ajax({
						type : "POST",
						cache: false,
						dataType: "json",
						url : dataUrl+"regist",
						data : "userName="+user_name+"&userPwd="+user_password,
						success : function(msg) {
							$("#user_id").html(msg.message);
						}
					});
			});
			$('#fileUpload').uploadify({
			    'uploader'  : 'res/js/jquery/plugin/uploadify/uploadify.swf',
			    'script'    : 'file/upload',
			    'cancelImg' : 'res/js/jquery/plugin/uploadify/images/cancel.png'
			});
});
